
public class RecommendedSong implements Comparable<RecommendedSong>{
	public int SongIndex;
	public double userPref;
	public String id;
	public String name;
	public double[] phero;
	
	public RecommendedSong( int i, double sum)
	{
		SongIndex = i;
		userPref = sum;
	}
	
	public RecommendedSong( int i, double sum, String sId, String title,
			double[] ph)
	{
		SongIndex = i;
		userPref = sum;
		id = sId;
		name = title;
		
		phero = new double[10];

		System.arraycopy( ph, 0, phero, 0, ph.length );
	
	}
	
	public int compareTo(RecommendedSong song2)
    {
		//higher first
        return ( (Double)(song2.userPref)).compareTo( (Double) userPref );
    }
}
